package com.two.shopping.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component//交给IOC容器
@ConfigurationProperties(prefix = "aliyun.oss")//这是从application.properties中获取的阿里云对象，通过Ioc容器实现注入
public class AliOSSProperties {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
